package self.rss.proto.util;



import self.rss.proto.R;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.Button;

public class OnPressButtonSmall extends Button{

	public OnPressButtonSmall(Context context) {
	super(context);
	}

	public OnPressButtonSmall(Context context, AttributeSet attrs){
	super(context, attrs);
	}

	@Override
	protected void onDraw(Canvas canvas) {
	//sets the button image based on whether the button in its pressed state
	setBackgroundDrawable(getResources().getDrawable(isPressed()?R.drawable.button_background_pressed_small : R.drawable.button_background_normal_small));
	super.onDraw(canvas);
	}

	}